package com.flyingocean;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
	static public void main(String[] args) {
		String pattern = "<div class=\"row\"><div class=\"column\">出生日期:</div>(.*)年(.*)月(.*)日</div>";
		Pattern r;
		Matcher m;
		String c  = "<div class=\"row\"><div class=\"column\">出生日期:</div>1998年05月13日</div>";
		r = Pattern.compile(pattern);
		m = r.matcher(c);
		if(m.find()) {
			System.out.println(m.group(1));
			System.out.println(m.group(2));
			System.out.println(m.group(3));
		}else {
			System.out.println("456");
		}
	}
}
